package com.zhl.entity;

import java.util.List;

/**
 * Created by Administrator on 2018/10/12.
 * 留言
 */
public class Message {

    private int id;
    private String username;
    private String context;
    /**
     * 留言是否有回复,0:没有,1:有
     */
    private int haschild;
    private String createTime;
    /**
     * 该留言所属的其他留言,0:一层级留言
     */
    private int writeBack;
    /**
     * 文章下的留言,所属文章id
     */
    private int belongArticle;

    private String nickname;
    private String icon;

    private List child;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getContext() {
        return context;
    }

    public void setContext(String context) {
        this.context = context;
    }

    public int getHaschild() {
        return haschild;
    }

    public void setHaschild(int haschild) {
        this.haschild = haschild;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public int getWriteBack() {
        return writeBack;
    }

    public void setWriteBack(int writeBack) {
        this.writeBack = writeBack;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public List getChild() {
        return child;
    }

    public void setChild(List child) {
        this.child = child;
    }

    public int getBelongArticle() {
        return belongArticle;
    }

    public void setBelongArticle(int belongArticle) {
        this.belongArticle = belongArticle;
    }

    @Override
    public String toString() {
        return "Message{" +
                "id=" + id +
                ", username='" + username + '\'' +
                ", context='" + context + '\'' +
                ", haschild=" + haschild +
                ", createTime='" + createTime + '\'' +
                ", writeBack=" + writeBack +
                ", belongArticle=" + belongArticle +
                ", nickname='" + nickname + '\'' +
                ", icon='" + icon + '\'' +
                ", child=" + child +
                '}';
    }
}
